/* 声破天登录页面样式 */

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Helvetica, Arial, sans-serif;
    background-color: #121212;
    color: #fff;
    line-height: 1.5;
}

a {
    color: #1DB954;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 450px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.logo {
    width: 200px;
    height: 60px;
    padding: 10px 0;
    margin: 0 auto;
}

/* 设置logo链接样式 */
.logo a {
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.logo a:hover {
    opacity: 0.9;
}

.logo svg {
    width: 100%;
    height: 100%;
}

/* 表单样式 */
.signup-form {
    background-color: #000;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* 登录表单特定样式 */
.login-form {
    margin-top: 20px;
}

h1 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
}

input {
    width: 100%;
    padding: 14px;
    border: 1px solid #878787;
    border-radius: 4px;
    background-color: #121212;
    color: white;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

input:focus {
    outline: none;
    border-color: #1DB954;
    box-shadow: 0 0 0 2px rgba(29, 185, 84, 0.3);
}

/* 复选框样式 */
.checkbox-group {
    margin: 15px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #1DB954;
}

.checkbox-label span {
    font-size: 14px;
    font-weight: normal;
}

/* 忘记密码链接 */
.forgot-password {
    text-align: center;
    margin: 15px 0;
}

.forgot-password a {
    color: #fff;
    font-size: 14px;
    text-decoration: underline;
}

.forgot-password a:hover {
    color: #1DB954;
}

/* 按钮样式 */
.btn {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 25px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    margin-top: 20px;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #1DB954;
    color: #000;
}

.btn-primary:hover {
    background-color: #1ED760;
    transform: scale(1.03);
}

.btn-social {
    background-color: transparent;
    color: #fff;
    border: 1px solid #878787;
    margin-bottom: 10px;
    position: relative;
    text-align: center;
    padding-left: 40px;
}

.btn-social i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.btn-social:hover {
    border-color: #fff;
    transform: scale(1.01);
}

/* 分隔线样式 - 修改后的样式 */
.separator {
    display: flex;
    align-items: center;
    margin: 24px 0;
    text-align: center;
}

.separator::before,
.separator::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background-color: #333;
    margin: 0 15px;
}

.separator span {
    color: #b3b3b3;
    font-size: 14px;
    font-weight: 500;
    padding: 0 10px;
}

/* 登录链接样式 */
.login-link {
    margin-top: 30px;
    text-align: center;
    font-size: 16px;
    border-top: 1px solid #2e2e2e;
    padding-top: 20px;
}

/* 法律文本样式 */
.legal-text {
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #878787;
}

.legal-text a {
    color: #878787;
    text-decoration: underline;
}

.legal-text a:hover {
    color: #aaa;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .signup-form {
        padding: 30px 20px;
    }

    h1 {
        font-size: 24px;
    }

    .container {
        padding: 10px;
    }

    body {
        background-color: #000;
    }

    .signup-form {
        box-shadow: none;
    }
}

/* 登录页面样式 */

/* 为password.html添加的样式 */
.email-display {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.email-display p {
    margin: 0;
    color: #b3b3b3;
}

.email-display span {
    color: white;
    font-weight: 500;
}

.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-bottom: 6px;
    overflow: hidden;
}

.strength-indicator {
    height: 100%;
    width: 0;
    background-color: #bfbfbf;
    border-radius: 2px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-text {
    font-size: 12px;
    margin: 0;
    text-align: right;
    color: #b3b3b3;
}

.password-match-text {
    font-size: 12px;
    margin: 6px 0 0;
    text-align: right;
}

.back-link {
    margin-top: 16px;
    text-align: center;
}

.back-link a {
    color: #b3b3b3;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-link a:hover {
    color: white;
}

.back-link i {
    margin-right: 6px;
}

/* 通用的登录页样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #121212;
    color: white;
    line-height: 1.5;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 450px;
    margin: 0 auto;
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

header {
    margin-bottom: 32px;
}

.signup-form {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

h1 {
    font-size: 32px;
    margin-bottom: 32px;
    letter-spacing: -0.04em;
    font-weight: 900;
}

form {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

input[type="email"],
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 14px;
    border-radius: 4px;
    border: 1px solid #727272;
    background-color: #121212;
    color: white;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input[type="email"]:focus,
input[type="text"]:focus,
input[type="password"]:focus {
    border-color: white;
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input {
    margin-right: 10px;
    width: 16px;
    height: 16px;
}

.btn {
    padding: 14px 20px;
    border-radius: 30px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #1DB954;
    color: white;
}

.btn-primary:hover {
    background-color: #1ed760;
    transform: scale(1.03);
}

.btn-social {
    background-color: transparent;
    border: 1px solid #727272;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.btn-social:hover {
    border-color: white;
}

.btn-social i {
    margin-right: 8px;
}

/* 修改后的分隔线样式 - 覆盖之前的定义 */
.separator {
    display: flex;
    align-items: center;
    margin: 24px 0;
    text-align: center;
}

.separator::before,
.separator::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background-color: #333;
    margin: 0 15px;
}

.separator span {
    color: #b3b3b3;
    font-size: 14px;
    font-weight: 500;
    padding: 0 10px;
}

.login-link {
    text-align: center;
    margin: 24px 0;
    color: #a7a7a7;
}

.login-link a {
    color: white;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

.forgot-password {
    text-align: center;
    margin: 12px 0 24px;
}

.forgot-password a {
    color: #1DB954;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.legal-text {
    text-align: center;
    color: #727272;
    font-size: 12px;
    margin-top: auto;
    padding-top: 24px;
}

.legal-text a {
    color: #a7a7a7;
    text-decoration: none;
}

.legal-text a:hover {
    text-decoration: underline;
}

/* 登录页面特定样式 */
.login-form h1 {
    text-align: center;
}

/* 中间上下打开动画样式 */
.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition: visibility 0s linear 0.3s, opacity 0.3s linear;
}

.transition-overlay.active {
    visibility: visible;
    opacity: 1;
    pointer-events: all;
    transition-delay: 0s;
}

.transition-top,
.transition-bottom {
    position: absolute;
    width: 100%;
    height: 50%;
    background-color: #1DB954;
    transition: transform 0.7s cubic-bezier(0.86, 0, 0.07, 1);
}

.transition-top {
    top: 0;
    transform: translateY(-100%);
}

.transition-bottom {
    bottom: 0;
    transform: translateY(100%);
}

.transition-overlay.active .transition-top {
    transform: translateY(0);
}

.transition-overlay.active .transition-bottom {
    transform: translateY(0);
}

.transition-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.transition-overlay.active .transition-logo {
    opacity: 1;
    transition-delay: 0.3s;
}

/* 淡出动画 */
.transition-overlay.fade-out .transition-top {
    transform: translateY(-100%);
    transition-delay: 0.3s;
}

.transition-overlay.fade-out .transition-bottom {
    transform: translateY(100%);
    transition-delay: 0.3s;
}

.transition-overlay.fade-out .transition-logo {
    opacity: 0;
    transition-delay: 0s;
}

.transition-overlay.fade-out {
    visibility: hidden;
    opacity: 0;
    transition-delay: 0.7s;
}